package com.nerve.cloudoffice.web.servlet;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;

/**
 * @project cloudOffice StartupServlet.java
 * @datetime Jul 30, 2013 9:46:01 PM
 * @description 
 * 	完成应用初始化的servlet   
 * @author 集成显卡 IBM 
 *			zxingming@qq.com
 *			zengxm@cn.ibm.com
 *
 * @change log:
 *
 */
@SuppressWarnings("serial")
public class StartupServlet extends HttpServlet {

	/**
	 * 完成以下工作：
	 * 1.设置log4j的日志文件位置
	 */
	public void init() throws ServletException {
		String path = getServletContext().getRealPath("/");
		System.out.println("path=" + path);
		System.setProperty("APP_DIR", path);
	}

}
